package demo.config;

import java.time.format.DateTimeFormatter;

/**
 * 这里想采用什么格式化方式就在这里定义就行
 * DateTime or Date
 */
public class DateTimeFormterGet {
    private static  DateTimeFormatter formatter;
    static {
         formatter = DateTimeFormatter.ofPattern(DateConfig.DEFAULT_DATE_TIME_FORMAT);
    }
    public static DateTimeFormatter getDateTimeFormeter(){
        return formatter;
    }
}
